package com.java1234.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 签到记录表
 * </p>
 *
 * @author zhai
 * @since 2025-05-10
 */
@Getter
@Setter
@TableName("sign_record")
public class SignRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 经度
     */
    @TableField("lng")
    private BigDecimal lng;

    /**
     * 纬度
     */
    @TableField("lat")
    private BigDecimal lat;

    /**
     * 签到地址
     */
    @TableField("address")
    private String address;

    /**
     * 距离签到点距离(米)
     */
    @TableField("distance")
    private BigDecimal distance;

    /**
     * 签到时间
     */
    @TableField("sign_time")
    private LocalDateTime signTime;
}
